package util;

import java.awt.geom.Point2D;

import robocode.rescue.RoboInfo;

public class Calculo {

	public static double distancia(Point2D a, Point2D b){
		return Math.sqrt(Math.pow((b.getX() - a.getX()), 2)+Math.pow((b.getY() - a.getY()), 2));
	}
	
	public static Point2D getPosicao(RoboInfo robo){
		return  new Point2D.Double(robo.getX(),robo.getY());
	}
}
